﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Idte.HumanResource.Job
{
    public class Role
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Guid Id { get; set; }
        [ForeignKey("TypeId")]
        public RoleType Type { get; set; }
        public int TypeId { get; set; }
        [InverseProperty("Role")]
        public ICollection<TaskRole> Tasks { get; set; }
    }
}
